org.eclipse.vtp.desktop.projects.core.actions
Class DeleteDatabaseActionFilter

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.actions.DeleteDatabaseActionFilter
All Implemented Interfaces:
IProvisioningActionItemFilter

public class DeleteDatabaseActionFilter
extends java.lang.Object
implements IProvisioningActionItemFilter

Identifies whether or not the DeleteMediaResourceAction is applicable to the current model selection. If the selection is a Media Resource element the action will be present and enabled. Otherwise, the action will not be disabled and not be visible.

Version:
1.0
Author:
Trip

Constructor Summary
DeleteDatabaseActionFilter()
          Creates a new DeleteMediaResourceActionFilter instance with default values.
 
Method Summary
 int appliesTo(IProvisioningModelSelection selection)
          Determines the visiblity state of the associated action item based on the given user selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteDatabaseActionFilter

public DeleteDatabaseActionFilter()
Creates a new DeleteMediaResourceActionFilter instance with default values.

Method Detail

appliesTo

public int appliesTo(IProvisioningModelSelection selection)
Description copied from interface: IProvisioningActionItemFilter
Determines the visiblity state of the associated action item based on the given user selection.

Specified by:
appliesTo in interface IProvisioningActionItemFilter
Parameters:
selection - The user selection
Returns:
The visibility state of the action item